package cn.pcManage.portalManage.controller;

import cn.common.common.model.ServerResponse;
import cn.pcManage.portalManage.service.IPortalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Zhang on 2019/1/3.
 */
@RestController
@RequestMapping("/portal")
public class PortalController {
    @Autowired
    IPortalService iPortalService;

    @RequestMapping("/userLogin")
    public ServerResponse<?> userLogin(@RequestParam("userName") String userName,
                                       @RequestParam("password") String password){
        return iPortalService.userLogin(userName,password);
    }
}
